﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Itfort
{
	/// <summary>
	/// 
	/// </summary>
	public class TraceUtil
	{
		static string NL = Environment.NewLine;

		/// <summary>
		/// 
		/// </summary>
		/// <param name="ex"></param>
		public static void Write(Exception ex)
		{
			string msg = ex.Message + NL
						+ ex.Source + NL
						+ ex.StackTrace + NL;
			Trace.WriteLine(msg);
		}
	}
}
